<template>
  <a-modal
    :title="title"
    :width="width"
    :visible="visible"
    :footer="null"
    @cancel="handleCancel"
    :confirmLoading="confirmLoading">
      <a-spin :spinning="confirmLoading">
        <detail-list>
          <detail-list-item term="板卡编号">{{record.boardNo}}</detail-list-item>
          <detail-list-item term="通电结果">{{record.electrifyTest}}</detail-list-item>
          <detail-list-item term="检测时间">{{record.testTime}}</detail-list-item>
          <detail-list-item term="供应商编号">{{record.supplierCode}}</detail-list-item>
          <detail-list-item term="工艺编号">{{record.processRouteNo}}</detail-list-item>
        </detail-list>
      </a-spin>
      <div style="text-align: center;margin-top: 10px"><a-button type="primary" @click="()=>this.visible = false">关闭</a-button></div>
  </a-modal>
</template>

<script>

  import DetailList from '@/components/tools/DetailList'
  const DetailListItem = DetailList.Item
  
  export default {
    name: "ZxjEip2cBkjcModal",
    components: {
      DetailList,
      DetailListItem
    },
    record:{},
    data () {
      return {
        title:"板卡检测详细信息",
        width:800,
        visible: false,
        model: {},
        confirmLoading: false,
        url: {

        }
      }
    },
    created () {
    },
    methods: {
      handleCancel(){
        this.visible = false;
      },
      addModal (record) {
        this.record=record;
        this.visible = true;
      }
    }
  }
</script>